package com.songlanyun.modules.offlinegoods.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 服务商品
 *
 * @author lijiahe
 * @date 2023-02-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("yxt_offline_goods_type")
public class OfflineGoodsType extends RootEntity<Long, OfflineGoodsType> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 服务商品id
     */
    @TableId
    private Long id;
    /**
     * 商家id
     */
    private Long shopId;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 创建者
     */
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Override
    public Long getIdentity() {
        return id;
    }
}
